package main

import (
	"fmt"
	"sync"
)

func TaskA(wg *sync.WaitGroup) {
	defer wg.Done()
	for i := 0; i <= 10; i++ {
		fmt.Println(i)
	}
}

func TaskB(wg *sync.WaitGroup) {
	defer wg.Done()
	for i := 'A'; i <= 'Z'; i++ {
		fmt.Printf("%c\n", i)
	}
}

func main() {
	// var wg = new(sync.WaitGroup)
	wg := &sync.WaitGroup{}
	wg.Add(2)
	TaskA(wg)
	TaskB(wg)
	wg.Wait()

}
